package com.zhu.esyblog.controller;

import com.zhu.esyblog.pojo.RespBean;
import com.zhu.esyblog.service.LoginService;
import com.zhu.esyblog.vo.LoginParams;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("login")
@Api(tags = "登录模块")
public class LoginController {
    @Autowired
    private LoginService loginService;
    @PostMapping
    public RespBean  login(@RequestBody LoginParams loginParams){
       return    loginService.login(loginParams);
    }
}
